﻿using SqlSugar;
using System;

namespace IconYuan.Model.Entity.Stores
{
    [SugarTable("t_shop")]
    public class ShopBase
    {
        public int shop_id { get; set; }
        /// <summary>
        /// 商城id
        /// </summary>
        public int store_id { get; set; }
        /// <summary>
        /// 门店名称
        /// </summary>
        public string shop_name { get; set; }
        /// <summary>
        /// 品牌名称
        /// </summary>
        public string brand { get; set; }

        /// <summary>
        /// 营业开始时间，格式: 09:00
        /// </summary>
        public string bus_start_time { get; set; }
        /// <summary>
        /// 营业截止时间，格式: 18:00
        /// </summary>
        public string bus_end_time { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string linkman { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 排序(数字越小越靠前)
        /// </summary>
        public int sort { get; set; } = 0;
        /// <summary>
        /// 状态：0 关闭, 1 显示
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }
        public double latitude { get; set; }
        public double longitude { get; set; }
        /// <summary>
        /// 距离： 米
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int distance { get; set; } = 0;

    }
    /// <summary>
    /// 门店详细
    /// </summary>
    [SugarTable("t_shop")]
    public class Shop
    {
        /// <summary>
        /// 自增
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int shop_id { get; set; }
        /// <summary>
        /// 商城id
        /// </summary>
        public int store_id { get; set; }
        /// <summary>
        /// 门店名称
        /// </summary>
        public string shop_name { get; set; }
        /// <summary>
        /// 品牌名称
        /// </summary>
        public string brand { get; set; }

        /// <summary>
        /// 营业开始时间，格式: 09:00
        /// </summary>
        public string bus_start_time { get; set; }
        /// <summary>
        /// 营业截止时间，格式: 18:00
        /// </summary>
        public string bus_end_time { get; set; }
        /// <summary>
        /// 状态：0 关闭, 1 显示
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string linkman { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 排序(数字越小越靠前)
        /// </summary>
        public int sort { get; set; } = 0;
        /// <summary>
        /// 商城logo文件ID
        /// </summary>
        public int logo_image_id { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }
        public double latitude { get; set; }
        public double longitude { get; set; }
        /// <summary>
        /// 门店简介
        /// </summary>
        public string describe { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// 距离： 米
        /// </summary>
        [SugarColumn(IsIgnore =true)]
        public int distance { get; set; } = 0;

    }
}
